|
|
|
|
<mongoDatabase variable>.Info (Function) In french: <Variable mongoBase>.Info Returns information about a MongoDB database. MDBDatabase is mongoDatabase infoMDB is mongoDatabaseInfo infoMDB = MDBDatabase.Info() Trace("The database " + infoMDB.Name + " contains " + infoMDB.NbDocuments + " documents.")
gclDatabase is mongoDatabase  // Read information about the current database clInfo is mongoDatabaseInfo = gclDatabase.Info()  sInfo is string = StringBuild([ Information about the MongoDB database -------------------------------- Name of the database: %1 Number of collections: %2 Number of documents: %3 Average size of documents: %4 Total database size: %5 Total storage size: %6 ], clInfo.Name, clInfo.NbCollections, clInfo.NbDocuments, LengthToString(clInfo.AverageDocumentSize), LengthToString(clInfo.DataSize), LengthToString(clInfo.StorageSize))  Info(sInfo)
Syntax
<Result> = <Database>.Info()
<Result>: mongoDatabaseInfo variable mongoDatabaseInfo variable containing information about the database. <Database>: mongoDatabase variable Name of the mongoDatabase variable corresponding to the MongoDB database being handled.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|